package com.itheima.reggie.service;

import com.itheima.reggie.entity.Category;
import com.itheima.reggie.entity.Page;

import java.util.List;

public interface CategoryService {
    void save(Category category);

    Page<Category> findByPage(Integer page, Integer pageSize);

    void delete(long id);

    void update(Category category);


    List<Category> findByType(Integer type);

    Category findById(Long categoryId);
}
